﻿<Page x:Class="PasswordProvider.View.BrowserOptionsPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="{Binding DisplayName}"
    ToolTip="{Binding ToolTip}"
      >
   
    <StackPanel Margin="10, 10">
        <CheckBox 
            Content="{Binding DoubleClickNavigatesToWebsite.DisplayName}"
            ToolTip="{Binding DoubleClickNavigatesToWebsite.ToolTip}"
            IsChecked="{Binding DoubleClickNavigatesToWebsite.IsChecked}" />
        
        <StackPanel Margin="10,10,0,0" IsEnabled="{Binding DoubleClickNavigatesToWebsite.IsChecked}">            
            <RadioButton Margin="5,0,0,5"
                Content="{Binding UseDefaultBrowser.DisplayName}" 
                ToolTip="{Binding UseDefaultBrowser.ToolTip}" 
                IsChecked="{Binding UseDefaultBrowser.IsChecked}" 
             />
            <RadioButton Margin="5,0,0,5" 
                Content="{Binding AlwaysUseInternetExplorer.DisplayName}" 
                ToolTip="{Binding AlwaysUseInternetExplorer.ToolTip}" 
                IsChecked="{Binding AlwaysUseInternetExplorer.IsChecked}"
             />
            <TextBlock TextWrapping="Wrap" Margin="0,10,0,0"
                       Text="{Binding AttemptAutoFillExplanation}"/>
            
            <CheckBox Margin="5,3" 
                Content="{Binding AttemptAutoFill.DisplayName}"
                ToolTip="{Binding AttemptAutoFill.ToolTip}"
                IsChecked="{Binding AttemptAutoFill.IsChecked}" 
             />
        </StackPanel>
    </StackPanel>
</Page>
